package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author ding
 * @since 2023-03-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_ecang")
public class OrderEcangDo extends Model<OrderEcangDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 平台代码
     */
    @TableField("platform")
    private String platform;

    @TableField("shop_id")
    private Long shopId;

    @TableField("company_id")
    private Long companyId;

    @TableField("is_send_out")
    private Integer isSendOut;

    @TableField("is_upload")
    private Integer isUpload;

    /**
     * 订单状态 订单状态0:删除;1:草稿;2:确认;3:异常;4:已提交;5:已打印;6:已下架;7:已打包;8:已装袋;9:装袋完成;10:已加挂;11:物流完成;12:物流发货;13:已签收'
     */
    @TableField("order_status")
    private Integer orderStatus;

    /**
     * 系统单号
     */
    @TableField("reference_no")
    private String referenceNo;

    /**
     * 仓库单号
     */
    @TableField("order_code")
    private String orderCode;

    /**
     * 仓库运输方式代码
     */
    @TableField("sm_code")
    private String smCode;

    @TableField("add_time")
    private Date addTime;

    @TableField("order_paydate")
    private Date orderPaydate;

    @TableField("service_rovider_name")
    private String serviceRoviderName;

    @TableField("warehouse_name")
    private String warehouseName;

    @TableField("warehouse_code")
    private String warehouseCode;

    @TableField("service_provider_code")
    private String serviceProviderCode;

    @TableField("channel_code")
    private String channelCode;

    @TableField("channel_name")
    private String channelName;

    @TableField("seller_id")
    private String sellerId;

    @TableField("ebay_total")
    private String ebayTotal;

    @TableField("currency_code")
    private String currencyCode;

    @TableField("tax_number")
    private Integer taxNumber;

    @TableField("firstname")
    private String firstname;

    @TableField("company")
    private String company;

    @TableField("country")
    private String country;

    @TableField("city")
    private String city;

    @TableField("postcode")
    private String postcode;

    @TableField("streetAddress1")
    private String streetAddress1;

    @TableField("streetAddress2")
    private String streetAddress2;

    @TableField("district")
    private String district;

    @TableField("state")
    private String state;

    @TableField("doorplate")
    private String doorplate;

    @TableField("phone")
    private String phone;

    @TableField("email")
    private String email;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("upload_time")
    private Date uploadTime;

    @TableField("track_id")
    private String trackId;

    @TableField("track_code")
    private String trackCode;

    @TableField("track_number")
    private String trackNumber;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
